package project.active;

import java.util.ArrayList;

import project.model.PrTestProject;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;

public class LineAdapter extends BaseAdapter{
	private Context context ;
	ArrayList<PrTestProject> lst ;

	public LineAdapter(ListErrorProjectManager listErrorProjectManager) {
	}

	
	public int getCount() {
		// TODO Auto-generated method stub
		return 0;
	}

	
	public Object getItem(int position) {
		// TODO Auto-generated method stub
		return null;
	}

	
	public long getItemId(int position) {
		// TODO Auto-generated method stub
		return 0;
	}

	
	public View getView(int position, View convertView, ViewGroup parent) {
//		Button bttView;
//		if(convertView == null){
//			bttView = new Button(context);
//			bttView.setPadding(8, 8, 8, 8);
//		}else{
//			bttView = (Button) convertView;
//		}
		LinearLayout linear=new LinearLayout(context);
		
		TextView tv=new TextView(context);
		tv.setText(lst.get(position).getIdTest());
		return tv;
	}
	
	public void setListItem(ArrayList<PrTestProject> list){
		lst=list;
	}

}
